<%@ page pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + request.getContextPath();
    request.setAttribute("basePath", basePath); // 将BasePath的内容保存在application属性之中
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <base href="<%=basePath%>/"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <title>养老院管理系统</title>
    <link rel="icon" href="img/ico.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/common.css"/>
    <link rel="stylesheet" href="css/welcome.css"/>
    <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
    <script>
        function goWhere() {
            var w_h = parseInt($("body").height());
            var t_h = parseInt($(".site_choose").height());
            top = parseInt(w_h - t_h);
            $(".zhy_zhezhao_pop").show();
            $(".site_choose").css("top", top).show();
        }

        function hideWhere() {
            $(".zhy_popa").hide();
            $(".zhy_zhezhao_pop").hide();

        }
    </script>
</head>
<body class="wid_1130" style="background: #edf0f2 url(img/left_bg.jpg) repeat-y 0px 0px;overflow: hidden;">


<div class="header">
    <div class="logo fl">
        <div class="pull-left callstatus ">
            <p class="font20">养老院管理系统</p>
        </div>
    </div>
    <div class="fr">
        <div class="login_box  pull-right btn-group">
            <p class="dropdown-toggle">
						<span>
							<i class="icon_level h_vip"></i>${name}
						</span>
                <i class="arrow_down"></i>
            </p>
            <ul class="dropdown-menu-header">
                <li><a href="logout.shiro">安全退出</a></li>
            </ul>
        </div>
    </div>
</div>

<div id="mainFrame" style="">
    <div class="left_menu fl">
        <div class="left_dotted"></div>
        <shiro:hasPermission name="role:list">
        </shiro:hasPermission>
        <c:if test="${fn:contains(supervises,'account') || fn:contains(supervises,'server')
                   || fn:contains(supervises,'role')}">
            <ul class="first_left">
                <li class="off">
                    <span><i class="icon_arrow_left"></i> 基础设置</span>
                    <ul class="second_left" style="display:none">
                        <c:if test="${fn:contains(supervises,'role')}">
                            <li class="health_report"><a href="pages/role/listRoles.action" target="mainf"><i
                                    class="icon_account"></i><span>角色管理</span></a></li>
                        </c:if>
                        <c:if test="${fn:contains(supervises,'server')}">
                            <li class="health_report"><a href="list"
                                                         target="mainf"><i
                                    class="icon_account"></i><span>服务站配置</span></a>
                                </if>
                            </li>
                        </c:if>
                        <c:if test="${fn:contains(supervises,'account')}">
                            <li class="health_report"><a href="pages/account/list.action" target="mainf"><i
                                    class="icon_account"></i><span>账号管理</span></a></li>
                        </c:if>
                    </ul>
                </li>
            </ul>
        </c:if>

        <c:if test="${fn:contains(supervises,'member') || fn:contains(supervises,'bed')}">
            <ul class="first_left">
                <li class="off">
                    <span><i class="icon_arrow_left"></i> 会员管理</span>
                    <ul class="second_left" style="display:none">
                        <c:if test="${fn:contains(supervises,'member')}">
                            <li class="health_report"><a href="files/member/member_list.html" target="mainf"><i
                                    class="icon_account"></i><span>会员列表</span></a></li>
                        </c:if>
                        <c:if test="${fn:contains(supervises,'bed')}">
                            <li class="health_report"><a href="bed_manage" target="mainf"><i
                                    class="icon_account"></i><span>床位配置</span></a></li>
                        </c:if>
                    </ul>
                </li>
            </ul>
        </c:if>

        <c:if test="${fn:contains(supervises,'healthy')}">
            <ul class="first_left">
                <li class="off">
                    <span><i class="icon_arrow_left"></i> 健康服务</span>
                    <ul class="second_left" style="display:none">
                        <c:if test="${fn:contains(supervises,'healthy')}">
                            <li class="health_report"><a href="files/book_list.html" target="mainf"><i
                                    class="icon_account"></i><span>健康管理</span></a>
                            </li>
                        </c:if>
                    </ul>
                </li>
            </ul>
        </c:if>

        <c:if test="${fn:contains(supervises,'arrange') || fn:contains(supervises,'arrangetable')}">
            <ul class="first_left">
                <li class="off">
                    <span><i class="icon_arrow_left"></i> 排班管理</span>
                    <ul class="second_left" style="display:none">
                        <c:if test="${fn:contains(supervises,'arrange')}">
                            <li class="health_report"><a href="files/scheduling/shift_plan_index.html" target="mainf"><i
                                    class="icon_account"></i><span>排班方案管理</span></a></li>
                        </c:if>
                        <c:if test="${fn:contains(supervises,'table')}">
                            <li class="health_report"><a href="files/scheduling/shift_table_index.html"
                                                         target="mainf"><i
                                    class="icon_account"></i><span>排班表管理</span></a></li>
                        </c:if>
                    </ul>
                </li>
            </ul>
        </c:if>

        <c:if test="${fn:contains(supervises,'knot') || fn:contains(supervises,'bill')}">
            <ul class="first_left">
                <li class="off">
                    <span><i class="icon_arrow_left"></i> 账单管理</span>
                    <ul class="second_left" style="display:none">
                        <c:if test="${fn:contains(supervises,'knot')}">
                            <li class="health_report"><a href="files/monthly_bill/monthly_bill_list.html"
                                                         target="mainf"><i
                                    class="icon_account"></i><span>月度账单</span></a></li>
                        </c:if>
                        <c:if test="${fn:contains(supervises,'bill')}">
                            <li class="health_report"><a href="files/monthly_bill/monthly_bill_settlement_list.html"
                                                         target="mainf"><i
                                    class="icon_account"></i><span>月度结算</span></a>
                            </li>
                        </c:if>
                    </ul>
                </li>
            </ul>
        </c:if>

    </div>
    <div class="right_main fl">
        <div id="div_pannel">
            <iframe src="pages/hello.action" frameborder="0" width="100%" height="100%" name="mainf" id="mainf"
                    border="0">
            </iframe>
        </div>
    </div>
</div>
</body>

<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

<!-- tabs生成和拖动 需引用js s-->
<script type="text/javascript" src="js/tabs.js"></script>

<script type="text/javascript" src="js/common.js"></script>

</html>



